<?= $html->docType(); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?= $html->charset(); ?>
	<title><?= $title_for_layout; ?></title>
	<?= $html->css('/pbanner/css/styles.css'); ?>
	<?= $html->css('/pbanner/css/dataPicker.css'); ?>
	<script type="text/javascript" src="<?= $html->url('/pbanner/js/jquery.js') ?>"></script>
	<script type="text/javascript" src="<?= $html->url('/pbanner/js/date.js') ?>"></script>
	<script type="text/javascript" src="<?= $html->url('/pbanner/js/datapicker.js') ?>"></script>
	<? if($session->check('Message.erro') or $session->check('Message.sucesso') or $session->check('Message.info')): ?>
		<script type="text/javascript" src="<?= $html->url('/pbanner/js/corner.js') ?>"></script>
		<script type="text/javascript">
			$(function(){
				$('.message').corner('top br');
			});
		</script>
	<? endif; ?>
</head>
<body>
	<? ($session->check('Message.erro')) ? $session->flash('erro') : ''; ?>
	<? ($session->check('Message.sucesso')) ? $session->flash('sucesso') : ''; ?>
	<? ($session->check('Message.info')) ? $session->flash('info') : ''; ?>
	<div id="wrap">
		<div id="header">
			<h1>PBanner</h1>
			<h2>Meneger yours banners.</h2>
		</div>
		<div id="nav">
			<ul>
				<li><?= ($this->params['controller'] == 'pbanner_administrators') ? $html->link('Administrator', array('plugin' => 'pbanner', 'controller' => 'pbanner_administrator', 'action' => 'index'), array('class' => 'selected', 'title' => 'administrator')) : $html->link('Administrator', array('plugin' => 'pbanner', 'controller' => 'pbanner_administrator', 'action' => 'index'), array('title' => 'administrator')) ; ?></li>
				<li><?= ($this->params['controller'] == 'pbanner_adverts') ? $html->link('Adverts', array('plugin' => 'pbanner', 'controller' => 'pbanner_adverts', 'action' => 'index'), array('class' => 'selected', 'title' => 'advert')) : $html->link('Adverts', array('plugin' => 'pbanner', 'controller' => 'pbanner_adverts', 'action' => 'index'), array('title' => 'advert')) ; ?></li>
				<li><?= ($this->params['controller'] == 'pbanner_configurations') ? $html->link('Configurations', array('plugin' => 'pbanner', 'controller' => 'pbanner_configurations', 'action' => 'index'), array('class' => 'selected', 'title' => 'Configurations')) : $html->link('Configurations', array('plugin' => 'pbanner', 'controller' => 'pbanner_configurations', 'action' => 'index'), array('title' => 'configuration')) ; ?></li>
				<li><?= ($this->params['controller'] == 'pbanner_help') ? $html->link('Helps', array('plugin' => 'pbanner', 'controller' => 'pbanner_helps', 'action' => 'index'), array('class' => 'selected', 'title' => 'Helps')) : $html->link('Help', array('plugin' => 'pbanner', 'controller' => 'pbanner_helps', 'action' => 'index'), array('title' => 'Helps')) ; ?></li>
			</ul>
		</div>
		<div id="content"><?= $content_for_layout; ?></div>
	</div>
</body>
</html>